package com.wp.service.impl;

import com.wp.dao.AccountDao;
import com.wp.domain.Account;
import com.wp.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 卫鹏
 * @Description 账户表实现类
 * @createTime 2021年10月19日 13:30:00
 */
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    public List<Account> findAll() {
        System.out.println("---业务层：查询账户所有的信息---");
        return accountDao.findAll();
    }

    public void saveAccount(Account account) {
        System.out.println("---业务层：保存账户---");
        accountDao.saveAccount(account);
    }
}

